//
// Created by renyi on 16/6/17.
//

#ifndef SSL_THREAD_COMMON_H
#define SSL_THREAD_COMMON_H

#include "SSL_Thread_Init.h"

#define DEBUG 1
#define CERTF "certs/cacert.pem"
#define KEYF  "certs/privkey.pem"

#define XL_CA  "certs/xunlei.pem"
#define XLCA  "certs/renyiai.com.crt"
#define XLCAKEY  "certs/renyiai.com.key"

#define LSNUM 1
#define PORT 443
#define MAXBUF 1024

#define CHK_NULL(x) if ((x)==NULL) { printf("null\n"); }
#define CHK_ERR(err,s) if ((err)==-1) { printf(" -1 \n"); }
#define CHK_SSL(err) if ((err)==-1) {  printf(" -1 \n");}

#ifdef __cplusplus
extern "C" {
#endif
void init_OpenSSL ();
#ifdef __cplusplus
}
#endif

#endif //SSL_THREAD_COMMON_H
